package com.easyad.hibernate;

/**
 * WorkdateId entity. @author MyEclipse Persistence Tools
 */

public class WorkdateId implements java.io.Serializable {

	// Fields

	private Integer byw;
	private Integer eyw;

	// Constructors

	/** default constructor */
	public WorkdateId() {
	}

	/** full constructor */
	public WorkdateId(Integer byw, Integer eyw) {
		this.byw = byw;
		this.eyw = eyw;
	}

	// Property accessors

	public Integer getByw() {
		return this.byw;
	}

	public void setByw(Integer byw) {
		this.byw = byw;
	}

	public Integer getEyw() {
		return this.eyw;
	}

	public void setEyw(Integer eyw) {
		this.eyw = eyw;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WorkdateId))
			return false;
		WorkdateId castOther = (WorkdateId) other;

		return ((this.getByw() == castOther.getByw()) || (this.getByw() != null
				&& castOther.getByw() != null && this.getByw().equals(
				castOther.getByw())))
				&& ((this.getEyw() == castOther.getEyw()) || (this.getEyw() != null
						&& castOther.getEyw() != null && this.getEyw().equals(
						castOther.getEyw())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getByw() == null ? 0 : this.getByw().hashCode());
		result = 37 * result
				+ (getEyw() == null ? 0 : this.getEyw().hashCode());
		return result;
	}

}